import request from '@/utils/request'

// 查询音频文件列表
export function listVideo(query) {
  return request({
    url: '/swla2/fileVideo/list',
    method: 'get',
    params: query
  })
}

// 查询音频文件详细
export function getVideo(id) {
  return request({
    url: '/swla2/fileVideo/' + id,
    method: 'get'
  })
}



export function getInfoExtend(query) {
  return request({
    url: '/swla2/fileVideo/getInfoExtendMore',
    method: 'get',
    params: query
  })
}


// 新增音频文件
export function addVideo(data) {
  return request({
    url: '/swla2/fileVideo',
    method: 'post',
    data: data
  })
}

// 修改音频文件
export function updateVideo(data) {
  return request({
    url: '/swla2/fileVideo',
    method: 'put',
    data: data
  })
}

// 删除音频文件
export function delVideo(id) {
  return request({
    url: '/swla2/fileVideo/' + id,
    method: 'delete'
  })
}
